package ooday05;

public class StaticDemo {
    public static void main(String[] args) {
        StaticVar o1=new StaticVar();
        o1.show();
        StaticVar o2=new StaticVar();
        o2.show();
        StaticVar o3=new StaticVar();
        o3.show();
        System.out.println("321123");


        StaticBlock a1=new StaticBlock();//加载时自动执行静态方法
        StaticBlock a2=new StaticBlock();
        StaticBlock a3=new StaticBlock();



    }



}
